home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
e
/
misc.save
/
000090_fdc@panix.com_Mon Mar 5 17:43:15 2007.msg
< prev
next >
Wrap
Internet Message Format
|
2011-07-03
|
2KB
Path: reader2.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit insists on treating PDF files as text
Date: Mon, 5 Mar 2007 22:43:05 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 32
Message-ID: <slrneup77p.565.fdc@panix3.panix.com>
References: <1173117905.196167.64710@p10g2000cwp.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix3.panix.com
X-Trace: reader2.panix.com 1173134585 29653 166.84.1.3 (5 Mar 2007 22:43:05 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Mon, 5 Mar 2007 22:43:05 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15662
On 2007-03-05, Ramon F Herrera <ramon@conexus.net> wrote:
: Desktop side: Kermit 95 version 2.1.3 on WinXP
: Server side: C-Kermit 8.0.209 on Linux
: Using SSH sessions
:
: I type "bin" on both sides, but Kermit stubbornly transfers the PDF
: file as text.
:
: The transfer from Linux to Windows is fine, the uploads are the ones
: getting messed up.
:
See:
http://www.columbia.edu/kermit/ckermit70.html#x4
As you can see, by default Kermit scans each file to see whether it is text
or binary, and within this default, the default is to scan the first 48K.
Very infrequently -- but mainly with PDF or certain PostScript files -- it
can turn out that the first 48K are, indeed, text, and the "binary" part
happens later, and the default file scan comes up with a false positive
for text.
The cited material shows the many available workarounds. The simplest one,
if you want to control the transfer mode yourself is, is:
SET TRANSFER MODE MANUAL
and then use SEND /BINARY and SEND /TEXT. Other options include using
filenamename associations instead of scanning the file's content, and
increasing the length of the scan.
- Frank